package com.htudata.live.pojo.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class Node implements Serializable {
  private static final long serialVersionUID = -8501624142610683671L;
  
  private int nodeId;
  
  private String flowId;
  
  private int nodeTypeId;
  
  private int stationTypeId;
  
  private String stationName;
  
  private String parentNodeId;
  
  private String xy;
  
  private String nodeName;
  
  private String nickname;
  
  private String ip;
  
  private int port;
  
  private int status;
  
  private String area_code;
  
  private int pid;
  
  private long zbxHostId;
  
  private LocalDateTime createTime;
  
  private LocalDateTime updateTime;

  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof Node))
      return false; 
    Node other = (Node)o;
    if (!other.canEqual(this))
      return false; 
    if (getNodeId() != other.getNodeId())
      return false; 
    Object this$flowId = getFlowId(), other$flowId = other.getFlowId();
    if ((this$flowId == null) ? (other$flowId != null) : !this$flowId.equals(other$flowId))
      return false; 
    if (getNodeTypeId() != other.getNodeTypeId())
      return false; 
    if (getStationTypeId() != other.getStationTypeId())
      return false; 
    Object this$stationName = getStationName(), other$stationName = other.getStationName();
    if ((this$stationName == null) ? (other$stationName != null) : !this$stationName.equals(other$stationName))
      return false; 
    Object this$parentNodeId = getParentNodeId(), other$parentNodeId = other.getParentNodeId();
    if ((this$parentNodeId == null) ? (other$parentNodeId != null) : !this$parentNodeId.equals(other$parentNodeId))
      return false; 
    Object this$xy = getXy(), other$xy = other.getXy();
    if ((this$xy == null) ? (other$xy != null) : !this$xy.equals(other$xy))
      return false; 
    Object this$nodeName = getNodeName(), other$nodeName = other.getNodeName();
    if ((this$nodeName == null) ? (other$nodeName != null) : !this$nodeName.equals(other$nodeName))
      return false; 
    Object this$nickname = getNickname(), other$nickname = other.getNickname();
    if ((this$nickname == null) ? (other$nickname != null) : !this$nickname.equals(other$nickname))
      return false; 
    Object this$ip = getIp(), other$ip = other.getIp();
    if ((this$ip == null) ? (other$ip != null) : !this$ip.equals(other$ip))
      return false; 
    if (getPort() != other.getPort())
      return false; 
    if (getStatus() != other.getStatus())
      return false; 
    Object this$area_code = getArea_code(), other$area_code = other.getArea_code();
    if ((this$area_code == null) ? (other$area_code != null) : !this$area_code.equals(other$area_code))
      return false; 
    if (getPid() != other.getPid())
      return false; 
    if (getZbxHostId() != other.getZbxHostId())
      return false; 
    Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
    if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
      return false; 
    Object this$updateTime = getUpdateTime(), other$updateTime = other.getUpdateTime();
    return !((this$updateTime == null) ? (other$updateTime != null) : !this$updateTime.equals(other$updateTime));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof Node;
  }

}
